package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountProductInventory;
import com.ecoolex.discount.sales.entity.DiscountProductInventoryExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountProductInventoryMapper {
    long countByExample(DiscountProductInventoryExample example);

    int deleteByExample(DiscountProductInventoryExample example);

    int deleteByPrimaryKey(Integer inventoryId);

    int insert(DiscountProductInventory record);

    int insertSelective(@Param("record") DiscountProductInventory record, @Param("selective") DiscountProductInventory.Column ... selective);

    DiscountProductInventory selectOneByExample(DiscountProductInventoryExample example);

    List<DiscountProductInventory> selectByExample(DiscountProductInventoryExample example);

    DiscountProductInventory selectByPrimaryKey(Integer inventoryId);

    DiscountProductInventory selectByPrimaryKeyWithLogicalDelete(@Param("inventoryId") Integer inventoryId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountProductInventory record, @Param("example") DiscountProductInventoryExample example, @Param("selective") DiscountProductInventory.Column ... selective);

    int updateByExample(@Param("record") DiscountProductInventory record, @Param("example") DiscountProductInventoryExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountProductInventory record, @Param("selective") DiscountProductInventory.Column ... selective);

    int updateByPrimaryKey(DiscountProductInventory record);

    int batchInsert(@Param("list") List<DiscountProductInventory> list);

    int batchInsertSelective(@Param("list") List<DiscountProductInventory> list, @Param("selective") DiscountProductInventory.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountProductInventoryExample example);

    int logicalDeleteByPrimaryKey(Integer inventoryId);
}